package com.nhim.cms.dao;
// default package

import java.util.List;

import com.nhim.cms.domain.ElementTemplate;
import com.nhim.core.dao.ICoreDAO;

/**
 * Interface for ElementTemplateDAO.
 * @author Huy Lieu TA
 */

public interface IElementTemplateDAO extends ICoreDAO<Integer,ElementTemplate> {

	/**
	 * Find all ElementTemplate entities with a specific property value.
	 * 
	 * @param propertyName
	 *            the name of the ElementTemplate property to query
	 * @param value
	 *            the property value to match
	 * @return List<ElementDefinition> found by query
	 */
	public List<ElementTemplate> findByProperty(String propertyName,
			final Object value);
	
	public List<ElementTemplate> findByElementDefinitionId(Integer id);
	
	public ElementTemplate findByNameAndElementDefinitionId(Integer id,String name);

}